package com.company.cloud.pay.modules.api.constant;

public enum PayTradeType {

    /**
     * 微信公众号支付或者小程序支付
     */
    WX_JSAPI("WX_JSAPI", "JSAPI", "wx_pay"),

    /**
     * 微信扫码支付
     */
    WX_NATIVE("WX_NATIVE", "NATIVE", "wx_pay"),

    /**
     * 微信APP支付
     */
    WX_APP("WX_APP", "APP", "wx_pay"),

    /**
     * 付款码支付
     */
    WX_MICROPAY("WX_MICROPAY", "MICROPAY", "wx_pay"),

    /**
     * H5支付
     */
    WX_MWEB("WX_MWEB", "MWEB", "wx_pay"),

    /**
     * 支付宝PC支付
     */
    AliPay_PC("ALI_WEB", "WEB", "ali_pay"),

    /**
     * 支付宝APP支付
     */
    AliPay_APP("ALI_APP", "APP", "ali_pay");

    PayTradeType(String code, String tradeType, String payChannel) {
        this.code = code;
        this.tradeType = tradeType;
        this.payChannel = payChannel;
    }

    /**
     * 交易
     */
    private final String code;

    /**
     * 交易类型
     */
    private final String tradeType;

    /**
     * 交易通道
     */
    private final String payChannel;


    public String getCode() {
        return code;
    }

    public String getTradeType() {
        return tradeType;
    }

    public String getPayChannel() {
        return payChannel;
    }

}
